<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include::header('违章登记')"/>
</head>
<body class="febs-container" id="febs-peccancyInformation">
<div class="febs-body layui-fluid" lay-title="违章登记">
    <div class="febs-body-search">
        <form class="layui-form layui-table-form" lay-filter="peccancyInformation-table-form"
              id="peccancyInformation-table-form">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form-item">
                        <div class="layui-inline" th:classappend="${hasHeadCompanyRole } ? '' : 'febs-hide'">
                            <label class="layui-form-label layui-form-label-sm">公司名称</label>
                            <div class="layui-input-inline" >
                                <select name="tenantId" id="tenantId" lay-search="" >
                                    <option th:each="item:${tenantList }"
                                            th:value="${item.tenantId}" th:text="${item.tenantName}"
                                            th:selected="${tenantId ==item.tenantId}">
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label layui-form-label-sm">项目名称</label>
                            <div class="layui-input-inline" style="width:190px;">
                                <input type="text" name="projectName" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">日期范围</label>
                            <div class="layui-input-inline" id="laydate-range">
                                <input type="text" name="startDate" autocomplete="off" id="start-date" lay-verify="date"
                                       class="layui-input" placeholder="开始日期">
                            </div>
                            <div class="layui-form-mid">-</div>
                            <div class="layui-input-inline">
                                <input type="text" name="endDate" autocomplete="off" id="end-date" lay-verify="date"
                                       class="layui-input" placeholder="结束日期">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label layui-form-label-sm">状态</label>
                            <div class="layui-input-inline" style="width:190px;">
                                <select name="status" id="status">
                                    <option value="1,3">待提交</option>
                                    <option value="2,5">待审核</option>
                                    <option value="4">待签发</option>
                                    <option value="6">已签发</option>
                                    <option value="10">作废</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label layui-form-label-sm" style="width: 85px">违章人员姓名</label>
                            <div class="layui-input-inline" style="width:190px;">
                                <input type="text" name="peccancyRealName" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <div id="query" class="layui-btn">
                                <em class="layui-icon">&#xe615;</em> 查询
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="febs-table-full">
        <table lay-filter="peccancyInformationTable" lay-data="{id: 'peccancyInformationTable'}"></table>
    </div>

</div>
<th:block th:include="include::foot"/>
<script type="text/html" id="peccancyInformation-toolbar">
    <div lay-event="add" class="layui-btn layui-btn-sm">
        <em class="layui-icon">&#xe654;</em> 新增
    </div>
</script>
<script data-th-inline="javascript">
    var hasHeadCompanyRole = [[${hasHeadCompanyRole}]];
    var peccancyRootCauseList = [[${peccancyRootCauseList}]];
    var jobOperationList = [[${jobOperationList}]];
    var peccancyTypeList = [[${peccancyTypeList}]];
    var tenantList = [[${tenantList }]];
</script>
<script type="text/html" id="option">
    <span shiro:lacksPermission="peccancyInformation:edit,peccancyInformation:delete,peccancyInformation:submit">
            <span class="layui-badge-dot febs-bg-orange"></span> 无权限
            </span>
    {{# if(d.status=='1' || d.status=='3'){  }}
<!--    <a lay-event="submit" title="提交审核" shiro:hasPermission="peccancyInformation:edit"><em class="layui-icon febs-edit-area febs-blue">&#xe86a;</em></a>-->
    <button type="button" class="layui-btn layui-btn-xs  layui-btn-primary layui-border-orange" lay-event="edit" title="编辑" shiro:hasPermission="peccancyInformation:edit"><i class="layui-icon layui-icon-edit">编辑</i></button>
    {{# if(d.penaltyAmountStatus !='1'){  }}
    <button type="button" class="layui-btn layui-btn-xs  layui-btn-primary layui-border-red" lay-event="del" title="删除" shiro:hasPermission="peccancyInformation:delete"><i class="layui-icon layui-icon-delete">删除</i></button>
    {{# }  }}
    {{# }  }}


</script>
<script th:src="@{/febs/js/peccancy/peccancyInformation/peccancyInformationList.js(v=1)}"></script>
</body>
</html>
